package cn.autumnorange.exception;


import cn.autumnorange.enums.ResultEnum;

/**
 * @ClassName LeadingEagleException
 * @Description
 * @Date 2019/1/11 1:59
 * @Version 1.0
 */
public class ChanelException extends RuntimeException {
    private Integer code;

    public ChanelException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public ChanelException(Integer code, String message){
        super(message);
        this.code = code;
    }
}
